package io.renren.modules.subject.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.meta.entity.EventEntity;
import io.renren.modules.subject.entity.BaseSubject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseSubjectMapper<T extends BaseSubject> extends BaseMapper<T> {
    List<EventEntity> selectEventsBySubjectId(@Param("subjectId") Long subjectId, @Param("tableName") String tableName);
    int insertSubjectEvent(@Param("subjectId") Long subjectId, @Param("eventId") Long eventId, @Param("tableName") String tableName);
    int deleteSubjectEvent(@Param("subjectId") Long subjectId, @Param("eventId") Long eventId, @Param("tableName") String tableName);
}
